// searchs listen 组件的接口

import request from "./http";
// http://192.168.100.59:3000/banner?type=3

//获取歌手分类列表  /artist/list?type=1&area=96&initial=b
// params: {type : 1, area : 96, initial: 'b', limit:5}
export function getArtistList(params) {
    return request({
        url: '/artist/list',
        method: 'get',
        params
    })
}

//热门歌手 /top/artists

export function getTopSong() {
    return request({
        url : '/top/artists',
        method: 'get',
        params: {
            limit: 5
        }
    })
}

//获取播放歌曲 /song/url?id=1846292840

export function getSongUrl(params) {
    return request({
        url: '/song/url',
        method: 'get',
        params
    })
}

//获取歌曲详细信息 /song/detail?ids=1846292840

export function getSongDetail(params) {
    return request({
        url: '/song/detail',
        method: 'get',
        params
    })
}

//查找歌词 /lyric?id=552448704

export function getLyricById(params) {
    return request({
        url: '/lyric',
        method: 'get',
        params
    })
}

